<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>
<div class="page-header">
							<h3 class="red">审核学生报名</h3>
</div>
<div class="row">
  <div class="col-xs-12">
    <div class="row">
  
										<div class="widget-box">
											<div class="widget-header widget-header-small">
												<h5 class="lighter"></h5>
											</div>

											<div class="widget-body">
												<div class="widget-main">

											<div class="table-responsive">
											<table id="sample-table-1" class="table table-striped table-bordered table-hover">
												<thead>
													<tr>
														
														<th>活动名称</th>
														
														<th  >活动内容</th>
														
														<th  >活动要求</th>
														<th  >活动状态</th>
														<th  >已参加人数</th>
														<th  >规定参加人数</th>
														<th  >未审核的人数</th>
														

														<th>
															<i class="icon-time bigger-110 "></i>
															添加时间
														</th>
														
														<th>操作</th>
													</tr>
												</thead>

												<tbody>
												<?php
												  foreach($acs as $s){
													  $con = $s->getConditionNum();
													  $isclosed = '<span class="label label-info arrowed">未关闭</span>';
													  if($s->isclosed === '1'){
														  $isclosed = '<span class="label label-warning arrowed">已关闭</span>';
													  }
													 echo '
													<tr>
														<td>
															<a href="#">'.$s->name.'</a>
														</td>
														
														<td  >
														<span display-content-id="'.$s->activityId.'" style="display:none;">'.$s->content.'</span>
															<button class="btn btn-sm btn-info" content-id="'.$s->activityId.'">
																详情
															</button>
														</td>
														
														<td>
														 <span display-requirement-id="'.$s->activityId.'" style="display:none;">'.$s->requirement.'</span>
														  <button class="btn btn-sm btn-warning" requirement-id="'.$s->activityId.'" >
														    要求
														  </button>
														</td>
														<td>'.$isclosed.'</td>
														<td>'.$s->attendnum.'</td>
														<td>'.$s->stunum.'</td>
														<td>'.$con['noCheck'].'</td>
														
														<td>'.$s->addtime.'</td>
														

														
														<td>
															<div >
												              
																<a target="_blank" href="'.Yii::app()->CreateUrl('activity/activitylist',array('id'=>$s->activityId)).'">
																<button class="btn btn-xs btn-warning" data-rel="tooltip" data-original-title = "已经参加的学生">
																	<i class="icon-list bigger-120"></i>
																</button>
																</a>
															</div>

														</td>
													</tr>';
												  }
                                                   ?>
												</tbody>
											</table>
										</div><!-- /.table-responsive -->
					</div>
				</div>
				
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
  jQuery(function($){
	  
 

	$('[requirement-id]').on("click",function(){
			var id = $(this).attr('requirement-id');
			bootbox.alert($("[display-requirement-id = "+id+"]").html(),function(){
				
				
			});

		  
		   
	   });
	   
	   $('[content-id]').on("click",function(){
			var id = $(this).attr('content-id');
			bootbox.alert($("[display-content-id = "+id+"]").html(),function(){
				
				
			});

		  
		   
	   }); 
	 
	  
  });
</script>